# 基础镜像
FROM  openjdk:8-jre
# author
MAINTAINER edsta
# 设定时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 复制jar文件到路径
ARG JAR_FILE
COPY ${JAR_FILE} /
ARG CONFIG_FILE
COPY ${CONFIG_FILE} /
# 启动黄埔材料院cae模块
ENTRYPOINT ["java",\
    "-Xmx1g",\
    "-Xms800m",\
    "-Xmn300m",\
    "-Xss2048k",\
    "-jar",\
    "-Djasypt.encryptor.password=edsta@ehotting&CEPREI",\
    "-Dspring.main.allow-circular-references=true",\
    "-Dspring.main.allow-bean-definition-overriding=true",\
    "/edsta-modules-cae.jar"]